package com.company.cloud.acct.constant;

import com.company.cloud.common.constant.ReturnCodeEnum;

/**
 *
 * */
public enum AcctErrorEnum implements ReturnCodeEnum {

    VCode_Expire("1020","验证码过期"),
    VCode_Error("1021","验证码失效"),

    NOT_OWNER("1001","非本人银行卡"),
    NOT_ACCOUNT("1002","未开通账户"),
    Acct_Insufficien("10329","冻结余额不能为空"),
    Acct_Insufficient("1030","账户余额不足"),
    Acct_Detail_Insufficient("1030","账户明细余额不足"),
    Acct_Bill_Insufficient("1030","账单余额不足"),
    Acct_Lock("1031","账户锁获取错误"),
    Acct_state_error("1032","账户状态异常"),
    Acct_config_null("1033","未设定提现配置"),
    Acct_Cash_All("1033","只支持全额提现"),

    BANKCARD_AUTH("1040","银行卡已鉴权成功,无法修改"),

    SMS_CAN_ONLY_BE_SENT_ONCE_PER_MINUTE("1050", "每分钟只能发一次短信"),
    SMS_SEND_LIMIT("1051", "今日短信发送已达上限"),

    ;

    private String code;

    private String msg;

    private AcctErrorEnum() {
    }

    AcctErrorEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
